﻿#pragma once

#include "Render/PreRender/PreRenderWidgets.h"

class CVulkanWindow;

class CVulkanLineWidget
{
public:
    void BindData(const SPreRenderLineWidget& Data);
   
    void Draw(vk::CommandBuffer CommandBuffer);

protected:
    SPreRenderLineWidget LineData;

};

//绘制所有的直线控件
class CVulkanLineWidgets
{
public:
    ~CVulkanLineWidgets();  

    void PreProcess(const TVector<SPreRenderLineWidget>& AllLineData);

    void CreateSelfRecordTasks(CVulkanWindow *InRenderSurface
        ,SRenderCommandBuffers &OutCmdBuffersToExecute);
protected:

    TVector<CVulkanLineWidget> LineWidgets;

    vk::CommandBuffer CommandBuffer;

};
